package com.whw.dubbo.customer;

import org.dubbo.provider.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("customer")
public class CustomerController {
	@Autowired
	private ProductService productService;
	@RequestMapping("sayHello")
	public String sayHello(String name){
		return productService.sayHello(name);
	}
}
